<template>
  <h1>实验 myslot</h1>
  <my-slot>
<!--    我是表格标题 - 自定义的默认插槽-->
    <template #title='scope'>
      <h2>我是表格标题 - 自定义的默认插槽</h2>
      <span>{{ scope.tableData[0] }}</span>
    </template>
    <template #tableName>
      <el-checkbox></el-checkbox>
    </template>
    <template #cn>
      <el-date-picker></el-date-picker>
    </template>
    <template #footer>
      <h3>footer 插槽</h3>
    </template>
  </my-slot>
</template>
<script setup>
import MySlot from '~/components/mySlot/index.vue'

</script>